//
//  NSObject+RXAlloc.m
//  RXFrame
//
//  Created by srxboys on 2021/4/22.
//

#import "NSObject+RXAlloc.h"

@implementation NSObject (RXAlloc)
+ (id)classNameCreateAlloc:(NSString *)className {
    // zone https://blog.csdn.net/q1194259339/article/details/49588253
    Class class = NSClassFromString(className);
    if(![class isKindOfClass:[NSObject class]]) return nil;
    id obj = [[class alloc] init];
    return obj;
}
@end
